//
//  MessageModel.m
//  WisdomCommunity
//
//  Created by Yahaong on 16/7/29.
//  Copyright © 2016年 zonten. All rights reserved.
//

#import "MessageModel.h"

@implementation MessageModel

+ (NSArray *)loadData
{
    NSString *path = [[NSBundle mainBundle]pathForResource:@"llfd.plist" ofType:nil];
    NSArray *tempArr = [NSArray arrayWithContentsOfFile:path];
    
    NSMutableArray *models = [NSMutableArray array];
    
    for (NSDictionary *dict  in tempArr) {
        
        
        MessageModel *model = [[MessageModel alloc]initWithDic:dict];
        [models addObject:model];
    }
    return models;
}
-(instancetype)initWithDic:(NSDictionary *)dic
{
    if (self = [super init]) {
        [self setValuesForKeysWithDictionary:dic];
    }
    return self;
}

@end
